home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / s-io.ads < prev    next >
Text File  |  1996-01-30  |  3KB  |  47 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT RUNTIME COMPONENTS                          --
  4. --                                                                          --
  5. --                            S Y S T E M _ I O                             --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.2 $                              --
  10. --                                                                          --
  11. --           Copyright (c) 1992,1993,1994 NYU, All Rights Reserved          --
  12. --                                                                          --
  13. -- The GNAT library is free software; you can redistribute it and/or modify --
  14. -- it under terms of the GNU Library General Public License as published by --
  15. -- the Free Software  Foundation; either version 2, or (at your option) any --
  16. -- later version.  The GNAT library is distributed in the hope that it will --
  17. -- be useful, but WITHOUT ANY WARRANTY;  without even  the implied warranty --
  18. -- of MERCHANTABILITY  or  FITNESS FOR  A PARTICULAR PURPOSE.  See the  GNU --
  19. -- Library  General  Public  License for  more  details.  You  should  have --
  20. -- received  a copy of the GNU  Library  General Public License  along with --
  21. -- the GNAT library;  see the file  COPYING.LIB.  If not, write to the Free --
  22. -- Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.        --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. --  A simple text I/O package, used for diagnostic output in the runtime,
  27. --  and can be used for simple I/O functions in user programs as required.
  28. --  This package is also preelaborated, unlike Text_Io, and can thus be
  29. --  with'ed by preelaborated library units.
  30.  
  31. package System.Io is
  32. pragma Preelaborate (Io);
  33.  
  34.    procedure Get (X : out Integer);
  35.    procedure Put (X : Integer);
  36.  
  37.    procedure Get (C : out Character);
  38.    procedure Put (C : Character);
  39.  
  40.    procedure Put (S : String);
  41.    procedure Put_Line (S : String);
  42.  
  43.    procedure New_Line (Spacing : Positive := 1);
  44.    procedure Get_Line (Item : in out String; Last : out Natural);
  45.  
  46. end System.Io;
  47.